package http;

import java.net.URL;
import java.util.LinkedHashMap;
import java.util.Map;
import net.htmlparser.jericho.Source;

public class SeriesParserStrategy extends Parser implements IParserStrategy {
	private Map<String,Link> links = new LinkedHashMap<String,Link>();
	public Map<String, Link> getLinks() {
		return links;
	}
	private boolean parseable = false;
	@Override
	public boolean isParseable() {
		return parseable;
	}
	@Override
	public void parse(URL url,Source source) {
		if (validate(url,source,"series")) {
			parseable = true;
			getLinksAndTitle(source,this.links,"series");
		}
	}
}
